FROM ubuntu
RUN echo "Asia/Shanghai" > /etc/timezone

COPY target/schoolmgt-0.0.1-SNAPSHOT.jar /opt
COPY jdk8 /opt/jdk8
COPY dd-java-agent.jar /opt
COPY start.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/start.sh

ENTRYPOINT ["/usr/local/bin/start.sh"]
